home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010306-20010921 / 000310_shifeux@hotmail.com_Tue Aug 14 10:51:18 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  63 lines

  1. Article: 12669 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.maxwell.syr.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: shifeux@hotmail.com (Shifeux)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Kermit Scripts and Shell Scripts
  6. Date: 14 Aug 2001 06:45:18 -0700
  7. Organization: http://groups.google.com/
  8. Lines: 44
  9. Message-ID: <336f652d.0108140545.1a1c8658@posting.google.com>
  10. References: <336f652d.0108130841.43ce0ed5@posting.google.com> <9l909g$bse$1@newsmaster.cc.columbia.edu>
  11. NNTP-Posting-Host: 146.145.217.201
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 997796718 10393 127.0.0.1 (14 Aug 2001 13:45:18 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 14 Aug 2001 13:45:18 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12669
  18.  
  19. I am using:  C-Kermit 7.0.197, 8 Feb 2000, for Data General DG/UX
  20. R4.20  I am trying to call the perl script from within an IF statement
  21. using the "run" command (I also toyed around with "exec")  The perl
  22. does work fine by itself. It seems like the IF construct is causing
  23. the Kermit script to crash at the point of the run command. When I
  24. comment out the IF statement the script runs fine.   I have tried
  25. various different things but nothing will let this run command run.
  26. Here is a listing of the latest try at the if statement.
  27.  
  28. if failure timeout
  29.  
  30. minput 10 {No files found} {Total of}
  31. switch \v(minput) {
  32.         :1, if failure write TRANSACTION-LOG Files Found\13\10, define
  33. \%o 1, br
  34. eak
  35.         :2, cp /kermit_scripts/\%r.termlog
  36. /cleoa+/kermit_scripts/\%r.files, break
  37. }
  38.             run /kermit_scripts/xxxxxxx.pl, pause 5, -
  39.             define \%o 1, break
  40.  
  41.  
  42. input 10 {choice : }
  43. if failure timeout
  44.  
  45. Thanks for the help
  46.  
  47.  
  48. fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote in message news:<9l909g$bse$1@newsmaster.cc.columbia.edu>...
  49. > In article <336f652d.0108130841.43ce0ed5@posting.google.com>,
  50. > Shifeux <shifeux@hotmail.com> wrote:
  51. > : Hi, I have a perl script that I am trying to call from a kermit
  52. > : script. The kermit script will crash at the point of calling the perl
  53. > : script. There seems to be something wrong with the call that C-Kermit
  54. > : makes to the shell within a ksc script. Can someone pplease point me
  55. > : in the right direction for refences to calling a seperate script from
  56. > : the kermit script. Thanks.
  57. > :
  58. > Which Kermit program are you using, which version, on what platform?
  59. > How are you calling the Perl script from it?  Does the same Perl script
  60. > run correctly when invoked directly from the shell?
  61. > - Frank
  62.